using System;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public class Pos_SalesMasterManager
{
	public Pos_SalesMasterManager()
	{
	}

    public static List<Pos_SalesMaster> GetAllPos_SalesMasters()
    {
        List<Pos_SalesMaster> pos_SalesMasters = new List<Pos_SalesMaster>();
        SqlPos_SalesMasterProvider sqlPos_SalesMasterProvider = new SqlPos_SalesMasterProvider();
        pos_SalesMasters = sqlPos_SalesMasterProvider.GetAllPos_SalesMasters();
        return pos_SalesMasters;
    }


    public static Pos_SalesMaster GetPos_SalesMasterByID(int id)
    {
        Pos_SalesMaster pos_SalesMaster = new Pos_SalesMaster();
        SqlPos_SalesMasterProvider sqlPos_SalesMasterProvider = new SqlPos_SalesMasterProvider();
        pos_SalesMaster = sqlPos_SalesMasterProvider.GetPos_SalesMasterByID(id);
        return pos_SalesMaster;
    }


    public static int InsertPos_SalesMaster(Pos_SalesMaster pos_SalesMaster)
    {
        SqlPos_SalesMasterProvider sqlPos_SalesMasterProvider = new SqlPos_SalesMasterProvider();
        return sqlPos_SalesMasterProvider.InsertPos_SalesMaster(pos_SalesMaster);
    }


    public static bool UpdatePos_SalesMaster(Pos_SalesMaster pos_SalesMaster)
    {
        SqlPos_SalesMasterProvider sqlPos_SalesMasterProvider = new SqlPos_SalesMasterProvider();
        return sqlPos_SalesMasterProvider.UpdatePos_SalesMaster(pos_SalesMaster);
    }

    public static bool DeletePos_SalesMaster(int pos_SalesMasterID)
    {
        SqlPos_SalesMasterProvider sqlPos_SalesMasterProvider = new SqlPos_SalesMasterProvider();
        return sqlPos_SalesMasterProvider.DeletePos_SalesMaster(pos_SalesMasterID);
    }
}
